package com.example.uCenter.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhl
 * @since 2022-08-29 08:38:53
 */
@Getter
@Setter
@TableName("image")
@ApiModel(value = "Image对象", description = "")
public class Image {

    @TableId(value = "image_id", type = IdType.AUTO)
    private Integer imageId;

    @ApiModelProperty("用户ID，谁上传的")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("MD5值")
    @TableField("md5")
    private String md5;

    @ApiModelProperty("图片名字")
    @TableField("image_name")
    private String imageName;

    @ApiModelProperty("图片地址")
    @TableField("url")
    private String url;

    @ApiModelProperty("图片类型（avatar,app_icon,cover）")
    @TableField("type")
    private String type;

    @ApiModelProperty("逻辑删除标记 0表示正常，1表示删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

//    @TableField("im01")
//    private String im01;
//
//    @TableField("im02")
//    private String im02;
//
//    @TableField("im03")
//    private String im03;
//
//    @TableField("im04")
//    private String im04;
//
//    @TableField("im05")
//    private String im05;


}
